<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page   contentType="text/html;charset=UTF-8" language="java" %>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" />
		<link rel="stylesheet" href="<%=path%>/css/Site.css" />
		<link rel="stylesheet" href="<%=path%>/css/zy.all.css" />
		<link rel="stylesheet" href="<%=path%>/css/font-awesome.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/amazeui.min.css" />
		<link rel="stylesheet" href="<%=path%>/css/admin.css" />
		<style>
		.search {
		    padding:10px 0;
		}
		#sform {
		    position:relative;
		    width:600px;
			margin-top: 10px;
			margin-bottom: 30px;
		}
		
		#search {
		    width:100%;
		    height:42px;
		    padding-left:13px;
			border-radius: 5px;
		}
		#btn_search {
		    height:42px;
		    width:80px;
		    cursor:pointer;
		    position:absolute;
		}     
		.bar #btn_search {
		    border:2px solid #4F99C6;
		    border-radius:5px;
		    background:transparent;
		    top:0;
		    right:0;
		}
		.bar #btn_search {
		    background:#4F99C6;
		    border-radius:0 5px 5px 0;
		    width:100px;
		    top:0;
		    right:0;
		}
		.bar #btn_search:before {
		    content:"搜索";
		    font-size:15px;
		    color:#F9F0DA;
		}
		</style>
	<body>
		<div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs">
					<div class="hd">
						<ul style="">
							<li style="box-sizing: initial;-webkit-box-sizing: initial;" class="" ><a style="color:white; text-decoration: none;" href="<%=path%>/course/listAll">查看课程</a></li>
							<li  style="box-sizing: initial;-webkit-box-sizing: initial;"class="on">添加课程</li>
						</ul>
					</div>
					
					<div class="bd">

						<ul class="theme-popbod dform" >
                            <%--<div class="am-cf admin-main" style="padding-top: 0px;">--%>
			<!-- content start -->

								<div class="am-cf admin-main" style="padding-top: 0px;">
									<!-- content start -->
									<div class="admin-content">
										<div class="admin-content-body">

											<div class="am-g">
												<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">

												</div>
												<div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4"
													 style="padding-top: 30px;">
													<form class="am-form am-form-horizontal"
														  action="<%=path%>/course/add">

														<div class="am-form-group">
															<label for="user-name" class="am-u-sm-3 am-form-label">
																课程名</label>
															<div class="am-u-sm-9">
																<input type="text" id="person" required
																	   name="courseName">
															</div>
														</div>
														<div class="am-form-group">
															<label for="user-name" class="am-u-sm-3 am-form-label">
																时间</label>
															<div class="am-u-sm-9">
																<select class="form-control" name="courseTime">
															<option value="">--请选择上课时间--</option>
															<option value="周一1,2节">周一1,2节</option>
															<option value="周一3,4节">周一3,4节</option>
															<option value="周一5,6节">周一5,6节</option>
															<option value="周一7,8节">周一7,8节</option>
															<option value="周二1,2节">周二1,2节</option>
															<option value="周二3,4节">周二3,4节</option>
															<option value="周二5,6节">周二5,6节</option>
															<option value="周二7,8节">周二7,8节</option>
															<option value="周三1,2节">周三1,2节</option>
															<option value="周三3,4节">周三3,4节</option>
															<option value="周三5,6节">周三5,6节</option>
															<option value="周三7,8节">周三7,8节</option>
															<option value="周四1,2节">周四1,2节</option>
															<option value="周四3,4节">周四3,4节</option>
															<option value="周四5,6节">周四5,6节</option>
															<option value="周四7,8节">周四7,8节</option>
															<option value="周五1,2节">周五1,2节</option>
															<option value="周五3,4节">周五3,4节</option>
															<option value="周五5,6节">周五5,6节</option>
															<option value="周五7,8节">周五7,8节</option>
														</select>
														</div>
												</div>
												<div class="am-form-group">
													<label for="user-name" class="am-u-sm-3 am-form-label">
														教室</label>
															<div class="am-u-sm-9">
																<input type="text" id="person" required
																	   name="classroom">
															</div>
														</div>
														<div class="am-form-group">
															<label for="user-name" class="am-u-sm-3 am-form-label">
																班级</label>
															<div class="am-u-sm-9">
																<select class="form-control" name="classId">
																	<option value="" selected>--请选择班级--</option>
																	<c:forEach items="${classesList}" var="classes">
																		<option value="${classes.classId}">${classes.className}</option>
																	</c:forEach>
																</select>
															</div>
														</div>
														<div class="am-form-group">
															<label for="user-name" class="am-u-sm-3 am-form-label">
																任课教师</label>
															<div class="am-u-sm-9">
																<select class="form-control" name="teacherId">
																	<option value="" selected>--请选择学院--</option>
																	<c:forEach items="${teacherList}" var="teacher">
																		<option value="${teacher.teacherId}">${teacher.teacherName}</option>
																	</c:forEach>
																</select>
															</div>
														</div>
														<div class="am-form-group">
															<label for="user-name" class="am-u-sm-3 am-form-label">
																学分</label>
															<div class="am-u-sm-9">
																<input type="text" id="person" required
																	   name="credit">
															</div>
														</div>
														<div class="am-form-group">
															<div class="am-u-sm-9 am-u-sm-push-3">
																<input type="submit" class="am-btn am-btn-success" style="margin-top: 30px; margin-left: 40%; margin-bottom: 10px;" value="提交" />
															</div>
														</div>
													</form>
												</div>
											</div>
										</div>

									</div>
									<!-- content end -->
								</div>
							<!-- end-->
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>

		</div>
	</body>

</html>